//
//  YKTextFiledPlaceholder.m
//  百思不得姐
//
//  Created by Eric.Wu on 16/2/28.
//  Copyright © 2016年 Eric.Wu. All rights reserved.
//

#import "YKTextFiledPlaceholder.h"
//#import <>
@implementation YKTextFiledPlaceholder
//static NSString *const YKPlcaceHolder = @"_placeholder.textColor";
//- (void)awakeFromNib
//{
////    self.tintColor = self.te;
//    [self resignFirstResponder];
//}
//- (BOOL)resignFirstResponder
//{
//    
//    [self setValue:self.textColor forKeyPath:YKPlcaceHolder];
//    return [super resignFirstResponder];
//}
//
//- (BOOL)becomeFirstResponder
//{
//    [self setValue:[UIColor grayColor] forKeyPath:YKPlcaceHolder];
//    return [super becomeFirstResponder];
//}

- (void)drawPlaceholderInRect:(CGRect)rect
{
    [self.placeholder drawInRect:CGRectMake(0, 10, rect.size.width, 25) withAttributes:@{
                                                                                         NSForegroundColorAttributeName : [UIColor grayColor],
                                                                                         NSFontAttributeName : self.font}];
}
@end
